<template>
  <div class="search-suggestion">
    <van-cell v-for="(v, i) of list" :key="i" icon="search" @click="$emit('search', v.originText)">
      <template v-slot:title>
        <div v-html="v.highlightText"></div>
      </template>
    </van-cell>
  </div>
</template>

<script>
export default {
  name: 'SearchSuggestion',
  props: ['list']
}
</script>

<style>

</style>
